package com.hottv.meeting.videomeeting.module.edp;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.hottv.meeting.videomeeting.common.MeetingConfig;

/**
 * Created by chengwenqiang on 2019/6/5.
 */

public class LaunchReceiver extends BroadcastReceiver {

    @Override
    public void onReceive(Context context, Intent intent) {
        String actStr = intent.getAction();
        Log.v(MeetingConfig.TAG, "EDPConfig----------收到开机广播,action:"+actStr);
        if (actStr.equals(Intent.ACTION_BOOT_COMPLETED)) { //开机启动完成后，要做的事情
            //开机启动one-net认证
            context.startService(new Intent(context, EDPService.class));
        }
    }
}
